<?php TPL::output('admin/admin_header.tpl.htm'); ?>

<body >

<div id="body-wrapper">
	<div id="main-content">
		<div class="clear"></div>
	<div class="content-box">
			<div class="content-box-header">
				<h3><?php echo $this->crumb['last']['name']; ?></h3>
					<ul class="content-box-tabs">
						<li><a class="default-tab current" href="#tab1">备份</a></li>
						<!--li><a href="#tab2" class="">执行SQL</a></li-->
					</ul>
				<div class="clear"></div>
			</div>
			
			<div class="content-box-content" style="margin-left:10px;">
				<div class="tab-content default-tab" id="tab1">
					<form id="_action_form" action="admin/maintain/database_backup/" method="post">
						<fieldset>
						<h4>备份数据库</h4>
						<p>
						<li style="line-height:22px;">数据备份功能将导出Anwsion数据库内容，导出的数据文件可用phpMyAdmin导入。</li>
						<li style="line-height:22px;">导出的数据文件可以直接下载，或登录FTP到system/<?php echo $this->backup_dir;?>/文件夹下载。</li>
						</p>
						<label>分卷备份 - 文件长度限制(单位：KB) ： <input type="text" class="text-input small-int" name="sizelimit" value="2048"></label>
						<label>备份文件名 ： <input type="text" class="text-input small-int" name="filename" value="<?php echo date("Ymd_") . random(8);?>"> .sql</label>
						</label>
						<p>
							<input class="button" type="submit" value="开始备份" />
						</p>
						</fieldset>
					</form>
						
						<!--div style="border-bottom:solid 1px #ccc;margin-top:20px;margin-bottom:20px;"></div>

					<form id="_action_form" action="admin/maintain/database_backup/" method="post">
						<fieldset>
						<h4>还原数据库</h4>
						<p>
						<li style="line-height:22px;">当站点进行了数据恢复、升级或者工作出现异常的时候，你可以使用本功能重新生成缓存。更新缓存的时候，可能让服务器负载升高，请尽量避开会员访问的高峰时间</li>
						</p>
						<table>
						<thead>
							<tr>
								<th style="width:20px;"><input type="checkbox" class="check-all"></th>
								<th style="width:380px;">文件名</th>
								<th>时间</th>
								<th>卷数</th>
							</tr>
						</thead>
						<tfoot>
							<tr>
								<td colspan="7">
								
								<div class="bulk-actions align-left">
										<select name="batch_action">
											<option value="">选择操作</option>
											<option value="delete">批量删除</option>
										</select>
										<a href="javascript:;" onClick="ajax_post($('#batchs_form'), _ajax_post_alert_processer); return false;" class="button">批量执行操作</a>
								</div>
									
									<div class="pagination">
										<div class="pf"><a class="number current">1</a>&nbsp;<a href="http://open1.idunion.com/index.php?/admin/question/list/page-2" class="number">2</a>&nbsp;<a href="http://open1.idunion.com/index.php?/admin/question/list/page-3" class="number">3</a>&nbsp;<a href="http://open1.idunion.com/index.php?/admin/question/list/page-4" class="number">4</a>&nbsp;<a href="http://open1.idunion.com/index.php?/admin/question/list/page-2" class="number">下一页 »</a>&nbsp;<a href="http://open1.idunion.com/index.php?/admin/question/list/page-30" class="number">末页</a></div>									</div>
									
									<div class="clear"></div>
									
									</td>
							</tr>
						</tfoot>
						<tbody>
        							<tr class="alt-row">
								<td><input type="checkbox" value="313" name="question_ids[]"></td>
								<td><a title="查看问题" target="_blank" href="http://open1.idunion.com/index.php?/question/313">请输入您afadfadf要发起的问</a></td>
								<td><a target="_blank" href="http://open1.idunion.com/index.php?/people/Sank">Sank</a></td>
								<td>2012-06-25 14:48:22</td>
								<td>4</td>
								<td>没有回复</td>
								<td>
									<a target="_blank" title="修改" href="http://open1.idunion.com/index.php?/publish/question_id-313#question"><img alt="修改" src="http://open1.idunion.com/static/admin/images/icons/pencil.png"></a>
								</td>
							</tr>
        						</tbody>
					</table>
						</fieldset>
					</form-->
						
						
						
						<div class="clear"></div>
				</div>

		</div>
		
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
		
	</div>
</div>

<?php TPL::output('admin/admin_footer.tpl.htm'); ?>